import 'package:flutter/widgets.dart';

import '../pages/page_with_title.dart';

///模块信息
class ModuleInfo {
  ///标题
  String title;

  ///模块的页面列表
  List<Object> pages;

  ModuleInfo(this.title, this.pages);
}

///页面信息
class PageInfo {
  PageWithTitle page;

  PageInfo(this.page);

  ///标题
  String get title => page.title;

  ///跳转页面
  Future jumpPage(BuildContext context) => page.push(context);
}
